/*
 *  main.c
 *  xD-OS
 *
 *  Created by James Johns on 21/07/2009.
 *  Copyright 2009 xD-Dunce. All rights reserved.
 *
 */

#include "global.h"
#include "textscreen.h"
#include "GDT.h"
#include "IDT.h"
#include "memory.h"
#include "PIT.h"

int _main(){
	initScreen();
	initGDT();
	initIDT();
	initPIT();
	initMemory();
	
	asm volatile("sti");

	dWord *newVar = malloc(sizeof(dWord));
	newVar = malloc(sizeof(dWord));
	
	wait(5);
	clearScreen();
	printString("xD-OS Version 0.1 Alpha\nBuild Number: ");
	printHex(BuildNumber);
	
	for(;;);
	return 0xdeadbeef;
}

